﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using D2.Pathfinder.Data;
using System.Collections.ObjectModel;

namespace D2.PathfinderHub.ViewModel
{
    public static class SettingsManager
    {
        public static Dictionary<Type, Dictionary<string, object>> Lists { get; private set; }

        public static void Initialize(Settings settings)
        {
            if (Lists == null)
                Lists = new Dictionary<Type, Dictionary<string, object>>();
            Lists.Clear();
            Lists.Add(typeof(AlignmentViewModel), new Dictionary<string, object>());
            foreach (AlignmentDef alignment in settings.Alignments)
            {
                Lists[typeof(AlignmentViewModel)].Add(alignment.Key, new AlignmentViewModel(alignment));
            }
        }
    }
}
